package com.example.springtest.controller;

import com.example.springtest.entity.ParamEntity;
import com.example.springtest.entity.ResEntity;
import com.example.springtest.service.TypeService;
import com.fasterxml.jackson.databind.util.JSONPObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.*;

@RestController
@EnableAutoConfiguration
public class TypeController {

    @Autowired
    private TypeService typeService;

    @PostMapping(value = "/typeJudge")
    @ResponseBody
    private ResEntity typeJundle(@RequestBody ParamEntity paramEntity) {
        //Object object = param;
        ResEntity str = typeService.typeJudge(paramEntity.getParam());
        return str;
    }
}
